@charset "UTF-8";
@import "mixin";
@import "common";
@import "animate";
@import "components";

.fragments {
  @include absolute();
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #f0eff5;
  .container-wrap {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    //height: calc(100% - 40px);
    //height: -webkit-calc(100% - 40px);
    overflow: hidden;
    z-index: 1;
    background-color: #f0eff5;
  }
  .container-wrap2{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    height: -webkit-calc(100% - 40px);
    overflow: hidden;
    z-index: 1;
    background-color: #f0eff5;
  }
  .container-y {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    padding-bottom: 40px;
    z-index: 1;
    background-color: #f0eff5;
  }
  .wrap-1{
    position: relative;
    width: 100%;
  }
}

.switcher-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  @include flex-display;
  @include flex-row;
  .si {
    @include flex-size(1);
    height: 100%;
    text-align: center;
    box-sizing: border-box;
    &:active {
      background-color: #efefef;
      font-size: 15px;
      color: #007aff;
    }
  }
  .switcher-active {
    color: #007aff;
    border-bottom: 4px solid #007aff;
  }
}

.data-list-wrap {
  width: 100%;
  .d-item {
    padding: 12px;
    border-radius: 4px;
    background-color: #fff;
    @include flex-display;
    @include flex-align-center;
    margin: 10px;
    .i-content {
      @include flex-size(1);
      @include wordHidden;
      .i-title {
        font-size: 15px;
        @include wordHidden;
      }
      .i-time, .i-name {
        font-size: 14px;
        margin-top: 6px;
      }
      .i-time {
        color: $font-color-gray;
      }
    }
    .i-img {
      width: 44px;
      height: 44px;
      margin-right: 10px;
      background-color: #3da7f3;
      border-radius: 22px;
      @include flex-display;
      @include flex-pack-center;
      @include flex-align-center;
      .iconfont{
        font-size:21px;
        color: #fff;
      }
    }
    .warn0 {
      background-color: #d2d0d0;
    }
    .warn1 {
      background-color: $font-color-red;
    }
    .warn2 {
      background-color: #ffa381;
    }
    .warn3 {
      background-color:#ffeb3b;
    }
    .warn4 {
      background-color: #2999f7;
    }
    @mixin state($font,$icon) {
      font-size: 13px;
      position: relative;
      padding-left: 20px;
      color: $font;
      height: 20px;
      line-height: 20px;
      &:before {
        @include iconCode($icon);
        font-size: 17px;
        color: $font;
        position: absolute;
        top: -1px;
        left: 0;
      }
    }
    .i-state-pend {
      @include state($font-color-red, "\e699")
    }
    .i-state-done {
      @include state($font-color-green, "\e629")
    }
    .i-state-complete {
      @include state($font-color-gray, "")
    }
  }
}


@mixin titleWrap {
  padding: 8px 12px;
  font-size: 14px;
  color: $font-color-gray2;
}

@mixin contentWrap {
  width: 100%;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  background-color: #fff;
  overflow-x: hidden;
  position: relative;
}

@mixin contentItem {
  padding: 6px 12px 6px 12px;
  position: relative;
  @include bord_bottom(12px, 1);
}

@mixin itemFiles {
  padding-left: 12px;
  line-height: 26px;
  font-size: 16px;
  color: #1e7ef3;
}

@mixin itemLink {
  position: relative;
  > a {
    color: #207fff;
  }
}

@mixin itemLabel {
  font-size: 14px;
  margin-bottom: 4px;
  padding: 2px 4px 2px 0;
}

@mixin itemTxt {
  word-break: break-all;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 12px;
  .inline-wrap-switch {
    width: 100%;
    height: 100%;
    @include flex-display;
    @include flex-align-center;
  }
  .mui-switch {
    display: inline-block !important;
    &:before {
      content: '否';
    }
  }
  .mui-switch.mui-active:before {
    right: auto;
    left: 15px;
    content: '是';
    color: #fff;
  }
  .input-inline{
    width: 100%;
    border: none;
    height: 100%;
    text-align: right;
    padding: 0 10px;
  }
}

@mixin itemInlineWrap {
  @include flex-display;
  @include flex_align_center;
  .txt {
    @include flex-size(1);
    text-align: right;
    padding-left: 0;
  }
  .mui-icon-forward {
    display: inline-block;
    margin-right: -12px;
    color: $font-color-gray;
  }
}

.d-item-wrap {
  .d-title {
    @include titleWrap;
  }
  .d-content {
    @include contentWrap;
    .item {
      @include contentItem;
      .label {
        color: #7c7c7c;;
        @include itemLabel;
      }
      .txt {
        @include itemTxt;
      }
      .link-wrap {
        @include itemLink;
      }
      .files {
        @include itemFiles;
      }
      .txt-area{
        text-indent: 4px;
        height: 160px;
        width: 100%;
        line-height: 22px;
        border: none;
      }
      .title{
        @include wordHidden_2;
        margin-bottom: 12px;
        line-height: 24px;
      }
      .news-s{
        @include flex-display;
        @include flex-align-center;
        font-size:14px;
        @include wordHidden;
        .content{
          @include flex-size(1)
        }
        .btn-d{
          @include btn-small(#fff,$font-color-green);
          z-index: 100;
          @include clickActive;
        }
      }
      .drag-wrap{
        position: absolute;
        top:0;
        left: 0;
        height: 100%;
        width: 40px;
        @include flex-display;
        @include flex-align-center;
        @include flex-pack-center;
        .iconfont{
          font-size: 38px;
          color: $themBlue;
        }
      }
      .close-wrap{
        position: absolute;
        top: 0;
        right: 4px;
        z-index: 100;
        .iconfont{
          font-size: 20px;
          color: $font-color-red;
        }
      }
    }
    .edit-item{
      padding-left: 40px;
      padding-right: 20px;
    }
    .fold-hide{
      &:nth-child(n+3):before{
        display: none;
      }
      &:nth-child(n+4){
        display: none;
      }
    }
    .inline-wrap {
      @include itemInlineWrap;
    }
  }
  .btn-edit{
    position: absolute;
    top: 4px;
    right: 8px;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #03a9f4;
    color: #fff;
  }
}

.fold-wrap {
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: #676767;
  font-size: 13px;
  background-color: #fff;
  .mui-icon {
    font-size: 16px;
  }
}

.advice-wrap {
  .title {
    @include titleWrap;
  }
  .content {
    @include contentWrap;
    .item {
      @include contentItem;
      color: $font-color-blue1;
      .top {
        position: relative;
        font-size: 14px;
        .iconfont {
          padding-left: 6px;
          padding-right: 6px;
          font-size: 22px;
          color: #f37f52;
        }
        .time {
          position: absolute;
          top: 6px;
          right: 10px;
          font-size: 13px;
        }
      }
      .txt {
        word-break: break-all;
        padding-left: 12px;
        padding-top: 6px;
        padding-bottom: 4px;
        color: $themFont;
      }
    }
    .fold-hide{
      &:nth-child(n+3):before{
        display: none;
      }
      &:nth-child(n+4){
        display: none;
      }
    }
  }
}

.actionSheet-warp {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 999;
  .gray-cover {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    @include gray_cover;
  }
  $action_br: 5px;
  .action-ul {
    position: relative;
    padding: 4px 20px;
    width: 100%;
    text-align: center;
    color: #007aff;
    border-radius: $action_br;
    overflow: hidden;
  }
  .action-li {
    position: relative;
    height: 43px;
    background-color: #fff;
    font-size: 16px;
    @include flex-display;
    @include flex-align-center;
    @include flex-pack-center;
    &:active {
      font-size: 15px;
    }
    border-bottom: 1px solid #c8c7cc;
    &:first-child {
      border-top-left-radius: $action_br;
      border-top-right-radius: $action_br;
    }
    &:last-child {
      border: none;
      border-bottom-left-radius: $action_br;
      border-bottom-right-radius: $action_br;
    }
  }
  .action-cancel {
    font-weight: 600;
    color: $font-color-red;
    margin-bottom: 8px;
  }
}

@mixin action_icon($code) {
  &:before {
    @include iconCode($code);
    padding-right: 6px;
    font-size: 28px;
  }
}

.action-icon-call {
  @include action_icon("\e62d");
}

.action-icon-chat {
  @include action_icon("\e612");
}

.feedBack-item{
  min-height: 32px;
  padding: 3px 0;
  font-size: 15px;
  @include flex-display;
  @include flex-align-center;
  .btn{
    @include btn-small(#fff,#2196f3);
  }
}

.noData-wrap{
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size:14px;
}

.bord-none{
  border: none;
}

.sort-wrap{
  position: absolute;
  top:0;
  right: 0;
  height:100%;
  width: 80%;
  opacity: 0;
  z-index:11;
}

.pull-wrap{
  position: relative;
  width: 100%;
  height: calc(100% - 44px);
  overflow: hidden;
}

.details-wrap {
  padding: 0 16px;
  .title {
    padding-top: 14px;
    padding-bottom: 4px;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
  }
  .labels {
    font-size: 13px;
    margin-bottom: 10px;
    text-align: left;
    word-break: break-all;
    .cs{
      padding: 4px 8px;
      border: 1px solid $themBlue;
      border-radius: 16px;
      color: $themBlue;
    }
    .item {
      display: inline-block;
      padding: 6px 8px;
    }
  }
  .content-wrap {
    padding: 16px 0;
    text-align: left;
    font-size: 14px;
    margin-bottom: 12px;
    .article {
      word-break: break-all;
      width: 100%;
      box-sizing: border-box;
      white-space: pre-wrap;
      font-size: 15px;
    }
    .item-wrap {
      margin: 10px 0;
      .i-label {
        font-size: 15px;
        font-weight: 600;
      }
      .item {
        padding-left: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        .text-gray {
          padding: 4px 0;
        }
      }
    }
    .file{
      .fui-font-attachment{
        font-size: 14px;
        padding: 0 3px;
      }
    }
  }
}

.pdb{
  height: 60px;
  width: 100%;
}

.infoBody{
  >.container-y{
    padding: 10px 12px;
    background-color: #fff;
    font-size: 14px;
  }
}
.iy-wrap .iy-desc {
  background: #fff;
  .desc-bd {
    padding: 10px 12px;
  }
}

.desc-header {
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 8px;
  h3 {
    word-break: break-all;
    @include text-overflow-ellipsis(2);
    text-align: left;
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
  }
  .dh-sec {
    line-height: 20px;
    color: #666;
    margin-bottom: 5px;
    min-height: 20px;
    span {
      float: left;
      width: 50%;
      @include text-overflow-nowrap-ellipsis();
    }
    label {
      color: #999;
    }
  }
}

.desc-body {
  padding: 15px 0;
  h6 {
    color: #444;
    line-height: 24px;
    font-size: 15px;
  }
  .db-content {
    line-height: 22px;
    margin-bottom: 5px;
    min-height: 80px;
    font-size: 14px;
    color: #666;
    word-break: break-all;
  }
  .file-btn {
    display: block;
    background: #f8f8f8;
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    padding: 0 8px;
    color: #58b5ff;
    margin-bottom: 5px;
    @include text-overflow-nowrap-ellipsis();
    border: 1px solid #e0e0e0;
    span {
      float: right;
      color: #999;
    }
  }
}

.desc-footer {
  label {
    display: block;
    line-height: 20px;
    word-break: break-all;
    @include text-overflow-ellipsis(2);
  }
  text-align: left;
  color: #999;
  line-height: 20px;
  a {
    color: #2196f3;
  }
}

.desc-scope {
  border-bottom: 1px solid #e2e2e2;
  padding: 10px 0;
  h3 {
    text-align: left;
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
  }
  p, div {
    line-height: 20px;
    margin-bottom: 4px;
    color: #666;
    padding-left: 40px;
    min-height: 20px;
    position: relative;
    word-break: break-all;
    label {
      position: absolute;
      left: 0;
      top: 0;
      width: 42px;
      text-align: right;
      color: #999;
    }
  }
}

.advice-list {
  margin-bottom: 10px;
  .adviceContent {
    color: #666;
    line-height: 24px;
    font-size: 14px;
    min-height: 48px;
  }
  .advice-footer {
    line-height: 20px;
    color: #999;
    span {
      float: right;
    }
  }
}

.fileNames {
  text-align: right;
  display: block;
  @include text-overflow-nowrap-ellipsis;
}

.neededFlag{
  font-size: 24px;
  color: #ff2b18;
  display: inline-block;
  height: 20px;
  line-height: 40px;
  overflow: hidden;
  padding: 0 2px;
}

.wordHidden-2{
  @include wordHidden_2;
}